package parsing

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)
func HandleError(err error, why string) {
	if err != nil {
		fmt.Println(why, err)
	}
}
func Parse(c *gin.Context)  {
	// 1.去网站拿数据
	resp, err := http.Get("https://momo.iiilab.com/")
	HandleError(err, "http.Get url")
	defer resp.Body.Close()
	fmt.Print(resp)
}
